﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportLeftMenuCtl.ascx.cs" Inherits="CRS.Web.UserControls.ReportLeftMenuCtl" %>

<script src="../ScriptFiles/JS/jquery.js" type="text/javascript"></script>

    <script type="text/javascript">
    $(document).ready(function (){
       
    });

    function lightHide(obj){
        var pSize=$('p').size();
        var aSize=$('a').size();
        for (var y = 0; y < pSize; y++)
        {
            var i=0;
            while(i<aSize){
               $("#"+y+"\\."+i).removeClass("lightHide");
               i++;
            }
        }
        $(obj).addClass("lightHide");
    }
    function changeView(obj) {

            var p = document.getElementsByTagName("p");
            for (var i = 0; i < p.length; i++) {
                if ("submenuh2_" + i != obj) {
                    document.getElementById("div_submenuh2_" + i).style.display = "none";
                    document.all("ico_submenuh2_" + i).src = "../Images/ico_nohave.gif";
                }
            }
            if(document.all("div_"+obj).style.display == "none" )
            {
               document.all("div_"+obj).style.display = "block";
               document.all("ico_" + obj).src = "../Images/ico_have.gif"; 
            }
            else
            {
               document.all("div_"+obj).style.display = "none";
               document.all("ico_" + obj).src = "../Images/ico_nohave.gif";
           }
          
            defaultView = obj;
        }
    </script>

    <style type="text/css">
        p
        {
            color: #448CCB; 
        }
        .lightHide
        {
        	background-color:#BEE4F7;
            border-top:1px solid #0000FF;
            border-right:1px solid #0000FF;
            border-bottom:1px solid #0000FF;
            border-left:1px solid #0000FF; 
        }
        .reportLeftMenuTr {height:28px; vertical-align:middle; font-size:14px;}
        .reportLeftMenuTr a:link{ COLOR:MenuText; TEXT-DECORATION: none }
        .reportLeftMenuTr a:visited{ COLOR:MenuText; TEXT-DECORATION: none }
        .reportLeftMenuTr a:hover{ COLOR:MenuText; TEXT-DECORATION: none }
        .reportLeftMenuTr a.current:link{ COLOR:MenuText; TEXT-DECORATION: none }
        .reportLeftMenuTr a.current:visited{ COLOR:MenuText; TEXT-DECORATION: none }
    </style>
<table class="tableElse" style="border: 1px solid #A8CFEB; margin-top: 2px; width: 128px;"
        cellpadding="0" cellspacing="0">
    <tr class="reportLeftMenuTr">
        <td>
            <img src="../Images/arr.gif" />
        </td>
        <td onmouseover="this.style.backgroundColor='#BEE4F7';" onmouseout="this.style.backgroundColor='';">
            <a href="SellDailyReport.aspx"
                expanded="false" nodedata="2" target="frmmain">
                <div style="cursor: hand;" id="0.0" onclick="lightHide(this)">
                    日销售报表</div>
            </a>
        </td>
    </tr>
    <tr class="reportLeftMenuTr">
        <td>
            <img src="../Images/arr.gif" />
        </td>
        <td onmouseover="this.style.backgroundColor='#BEE4F7';" onmouseout="this.style.backgroundColor='';">
            <a href="SellRoomDailyReport.aspx" expanded="false" nodedata="2" target="frmmain">
                <div style="cursor: hand;" id="Div1" onclick="lightHide(this)">
                    房间日消费追溯</div>
            </a>
        </td>
    </tr>
    <tr class="reportLeftMenuTr">
        <td>
            <img src="../Images/arr.gif" />
        </td>
        <td onmouseover="this.style.backgroundColor='#BEE4F7';" onmouseout="this.style.backgroundColor='';">
            <a href="SellReport.aspx"
                expanded="false" nodedata="2" target="frmmain">
                <div style="cursor: hand;" id="Div2" onclick="lightHide(this)">
                    销售报表</div>
            </a>
        </td>
    </tr>
    <tr class="reportLeftMenuTr">
        <td>
            <img src="../Images/arr.gif" />
        </td>
        <td onmouseover="this.style.backgroundColor='#BEE4F7';" onmouseout="this.style.backgroundColor='';">
            <a href="InterestReport.aspx"
                expanded="false" nodedata="2" target="frmmain">
                <div style="cursor: hand;" id="Div3" onclick="lightHide(this)">
                    利润报表</div>
            </a>
        </td>
    </tr>
    <tr class="reportLeftMenuTr">
        <td>
            <img src="../Images/arr.gif" />
        </td>
        <td onmouseover="this.style.backgroundColor='#BEE4F7';" onmouseout="this.style.backgroundColor='';">
            <a href="AssetInfoList.aspx"
                expanded="false" nodedata="2" target="frmmain">
                <div style="cursor: hand;" id="Div4" onclick="lightHide(this)">
                    账目明细</div>
            </a>
        </td>
    </tr>
</table>
